import {Injectable} from '@angular/core';
import {BaseService} from '../shared/base.service';
import {Http} from '@angular/http';
import { TranslateService } from "@ngx-translate/core";
@Injectable({
  providedIn: 'root'
})
export class LoginService extends BaseService{
    constructor(http:Http,translateService:TranslateService) {
        super(http,translateService);
    }
    //获取语言列表
    getAllLanguage(){
        return this.postInfo("/eas-alone/v1/i18n/getAllLanguage",null);
    }
    //获取所有设备类型
    getAllDevice(){
        return this.postInfo("/eas-alone/v1/device/getAllDevice",null);
    }
    //设备登陆
    login(){
        return this.postInfo("/eas-alone/v1/device/login",null);
    }
}
